home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DDJMAG / DDJ8801.ZIP / NARO.ZIP / DEMO.C < prev    next >
Text File  |  1987-11-16  |  550b  |  22 lines

  1. /*
  2.     This program demonstrates the use of the LOCATE utility.  It
  3.     contains all of the components of a typical C program to exercise
  4.     the startup code and locate utility.
  5. */
  6.  
  7. char    *ptr = "Class DATA" ;                /* Initialized data */
  8. int    array[10][10] ;                        /* Uninitialized data */
  9.  
  10. main()
  11. {
  12.     int    i, j ;                                /* Automatics */
  13.     static    char    *s = "" ;                  /* Static initialized data */
  14.  
  15.     for (i = 0; i < 10; i++)   {
  16.         for (j = 0; j < 10; j++)
  17.             array[i][j] = i * j ;
  18.     }
  19.  
  20.     strcpy(s, ptr) ;                            /* Bring in a library function */
  21. }
  22.